package com.demo.admin.web.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.demo.admin.service.SystemService;
import com.demo.admin.domain.result.GetUserInfoResult;
import com.demo.common.domain.vo.BaseResult;

/**
 * SystemApi
 * 
 * @author etiger
 * @data 2022-08-08 09:29:57
 */
@RestController
@RequestMapping(value = "/api/system")
public class SystemApi {
    @Autowired
    private SystemService systemService;

    /**
     * 获取网关账号权限信息
     * 
     * @author etiger
     */
    @GetMapping(value = "/gateway-account/info")
    public BaseResult<GetUserInfoResult> getInfo() {
        return BaseResult.success(systemService.getInfo());
    }

}
